public class j9 {
    public static void main(String[] args) {
        int i = 1;
        while(i<=100){
            if(i%3==0){
                if(i%5==0){
                    System.out.println(i);
                }
            }
            i++;
        }

    }
}
